﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Aliyeye.Car.Net.UI.OrderModel;
using Aliyeye.Car.Net.UI.SystemHelp;
using Aliyeye.Car.Net.UI.Common;

namespace Aliyeye.Car.Net.UI.SystemAdmin
{
    public partial class SystemAdminHelp:BgForm
    {
        public SystemAdminHelp()
        {
            InitializeComponent();
        }

        //短租自驾
        private void menuBlueLargeButton1_Click(object sender, EventArgs e)
        {
            ShortLeaseWithOutDriverList form = new ShortLeaseWithOutDriverList(true);
            form.ShowDialog();
        }

        //长租自驾
        private void menuBlueLargeButton3_Click(object sender, EventArgs e)
        {
            ShortLeaseWithOutDriverList form = new ShortLeaseWithOutDriverList(false);
            form.Text = "长租自驾预定";
            form.toolStripLabel1.Text = "长租自驾预定";
            form.ShowDialog();
        }

        //短租带驾
        private void menuBlueLargeButton2_Click(object sender, EventArgs e)
        {
            ShortLeaseWithDriverList form = new ShortLeaseWithDriverList();
            form.ShowDialog();
        }

        //长租带驾
        private void menuBlueLargeButton4_Click(object sender, EventArgs e)
        {
            LognLeaseWithDriverList form = new LognLeaseWithDriverList();
            form.ShowDialog();
        }

        //所有订单
        private void menuBlueLargeButton5_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            AllOrdersList form = new AllOrdersList();
            form.ShowDialog();
        }

        private void menuBlueLargeButton6_Click(object sender, EventArgs e)
        {
            if (Login.IsTestUser)
            {
                PageCommon.Alert(Login.TestUserMessage);
                return;
            }
            ReturnIllegalList form = new ReturnIllegalList();
            form.ShowDialog();
        }

        private void menuBlueLargeButton7_Click(object sender, EventArgs e)
        {
            SettlementRenewalList form = new SettlementRenewalList();
            form.ShowDialog();
        }

        private void menuBlueLargeButton8_Click(object sender, EventArgs e)
        {           
            GetCarList form = new GetCarList();
            form.ShowDialog();
        }


    }
}
